第 3步:现在让我们在main()中调用create_stars() )。这是我们为您提供的功能之一。

  • 我们的create_stars函数需要两个参数。我们将在此处输入数字,但稍后更改它们。
  • ,将Call with Parameters拖到main()的内部和底部
  • my_function()更改为create_stars()
  • 最后将my_var1更改为100并将my_var2更改为"yellow" 。按跑到舞台上看星星!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)